import request from '@/utils/request'

// 分页查询直播
export function pageListLive(live) {
  return request({
    url: '/live/pageListLive',
    method: 'post',
    data: live
  })
}

// 查询直播详情
export function getLiveDetail(id) {
  return request({
    url: '/live/getLiveDetail?liveId=' + id,
    method: 'get'
  })
}

// 新增直播
export function addLive(live) {
  return request({
    url: '/live/addLive',
    method: 'post',
    data: live
  })
}

// 更新直播
export function updateLive(live) {
  return request({
    url: '/live/updateLive',
    method: 'post',
    data: live
  })
}

// 删除直播
export function deleteLive(liveId) {
  return request({
    url: '/live/deleteLive?liveId=' + liveId,
    method: 'get'
  })
}



